﻿using System.ComponentModel.Composition;
using Peter.Common;

namespace Peter.Logic.Plugins
{
   /// <summary>
   /// Represents a plugin to view and manipulate SQLite databases.
   /// </summary>
   [Export (typeof (PeterPluginBase))]
   [PeterMetadata ("SQLite Explorer", "Jonathan Montiverdi", "Create and manipulates SQLite databases.", "0.1")]
   public class SqlitePlugin : PeterPluginBase, IFileOperations
   {
      /// <summary>
      /// Opens the given file, return the dock content displaying the file.
      /// </summary>
      /// <param name="filePath">Full path to file to open.</param>
      /// <returns>Dock item displaying file.</returns>
      public void Open (string filePath)
      {
      }

      /// <summary>
      /// Checks to see if the save command can/needs to be invoked.
      /// </summary>
      /// <returns>True if save can/needs to be invoked, otherswise false.</returns>
      public bool CanSave ()
      {
         return false;
      }

      /// <summary>
      /// Saves the current data.
      /// </summary>
      public void Save ()
      {
      }
   }
}
